export default {
  change (state, msg) {
    if (msg) {
      state.city = msg
      try {
        if (localStorage.city) {
          localStorage.city = msg
        }
      } catch (e) {}
    }
  },
  changeOpenId (state, id) {
    state.goods.opened = id
  },
  changeActiveTypeIndex (state, id) {
    state.activeTypeIndex = id
  },
  filterNoTxt (state, status) {
    state.filterNoText = status
  }
}
